package com.bl.student.dao.model;

import com.bl.student.common.enums.UserStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by yujingyi on 2018/2/5.
 */
@Entity
@Data
@Table(name = "partya")
@ApiModel(value = "TeacherEntity", description = "标签")
@DynamicInsert
@DynamicUpdate
public class TeacherEntity {

    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "环信id")
    @Column(name = "hx_id")
    private String hxId;

    @ApiModelProperty(value = "环信name")
    @Column(name = "hx_name")
    private String hxName;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "帐号")
    private String account;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @Enumerated(EnumType.STRING)
    @ApiModelProperty(value = "用户状态")
    private UserStatus status;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "update_time")
    private Date updateTime;

    @ApiModelProperty(value = "openid")
    @Column(name = "open_id")
    private String openId;

    @ApiModelProperty(value = "unionId")
    @Column(name = "union_id")
    private String unionId;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    private int point;

    @ApiModelProperty(value = "邀请码")
    @Column(name = "invite_code")
    private String inviteCode;

    private String info;

    private double grade;

    private BigDecimal money;
}
